import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { inspectionTaskVO, inspectionTaskQuery } from '@/api/inspection/inspection-report-form/types';

/**
 * 巡检报表
 * @param query
 * @returns {*}
 */

export const listinspectionTaskStatement = (query?: inspectionTaskQuery): AxiosPromise<inspectionTaskVO[]> => {
  return request({
    url: '/inspection/inspection-task/inspectionTaskStatement',
    method: 'get',
    params: query
  });
};